<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OrganizeOrderStatus
 *
 * @ORM\Table(name="ue_organize_order_status", indexes={@ORM\Index(name="organize_id_idx", columns={"organize_id"}), @ORM\Index(name="order_status_id_idx", columns={"order_status_id"})})
 * @ORM\Entity
 */
class OrganizeOrderStatus
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var \Status
     *
     * @ORM\ManyToOne(targetEntity="Status")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="order_status_id", referencedColumnName="id")
     * })
     */
    private $orderStatus;

    /**
     * @var \Organize
     *
     * @ORM\ManyToOne(targetEntity="Organize")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="organize_id", referencedColumnName="id")
     * })
     */
    private $organize;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set orderStatus
     *
     * @param \Ue\ErpBundle\Entity\Status $orderStatus
     * @return OrganizeOrderStatus
     */
    public function setOrderStatus(\Ue\ErpBundle\Entity\Status $orderStatus = null)
    {
        $this->orderStatus = $orderStatus;

        return $this;
    }

    /**
     * Get orderStatus
     *
     * @return \Ue\ErpBundle\Entity\Status 
     */
    public function getOrderStatus()
    {
        return $this->orderStatus;
    }

    /**
     * Set organize
     *
     * @param \Ue\ErpBundle\Entity\Organize $organize
     * @return OrganizeOrderStatus
     */
    public function setOrganize(\Ue\ErpBundle\Entity\Organize $organize = null)
    {
        $this->organize = $organize;

        return $this;
    }

    /**
     * Get organize
     *
     * @return \Ue\ErpBundle\Entity\Organize 
     */
    public function getOrganize()
    {
        return $this->organize;
    }
}
